package tech.eyao.hs60x.enums;

/**
 * 短信模板配置
 * 
 * @author fengjianchao
 */
public enum SmsTemplateCodeEnums {
    LOGIN("0", "SMS_118140067", "登录确认验证码"),
    ELSE("99", "", "其它类型");
    private String templateType;
    private String templateCode;
    private String templateDesc;
    /**
     * 跟进短信类型获取
     * @param templateType
     * @return
     */
    public static SmsTemplateCodeEnums getValueByTemplateType(String templateType) {
        for (SmsTemplateCodeEnums template : SmsTemplateCodeEnums.values()) {
            if (template.templateType.equals(templateType)) {
                return template;
            }
        }
        return null;
    }

    private SmsTemplateCodeEnums(String templateType, String templateCode, String templateDesc) {
        this.templateType = templateType;
        this.templateCode = templateCode;
        this.templateDesc = templateDesc;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public String getTemplateDesc() {
        return templateDesc;
    }

    public void setTemplateDesc(String templateDesc) {
        this.templateDesc = templateDesc;
    }

    public String getTemplateType() {
        return templateType;
    }

    public void setTemplateType(String templateType) {
        this.templateType = templateType;
    }

}
